* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.games-main {
    min-height: 100vh;
}

/* -------------------------- HERO SECTION -------------------------- */
.games-hero {
    width: 100%;
    padding: 100px 40px 80px;
    position: relative;
    background-color: #f7fdff;
    overflow: hidden;
}

.games-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../resources/ui/patterns/pattern_pigeons_black.png');
    background-size: 1200px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.games-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
}

.games-hero-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f7fdff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
     box-shadow: 
        0 0 0 50px rgba(247, 253, 255, 0.8),
        0 0 0 100px rgba(247, 253, 255, 0.6),
        0 0 0 150px rgba(247, 253, 255, 0.4),
        0 0 0 200px rgba(247, 253, 255, 0.2),
        0 0 0 250px rgba(247, 253, 255, 0.1);
}

.hero-decoration {
    height: 120px;
    width: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.games-hero h1 {
    font-family: 'Lilita One', 'Times New Roman';
    font-size: 64px;
    color: #006ad5;
    letter-spacing: 2px;
}

.games-hero p {
    font-size: 20px;
    color: #333333;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 700px;
}

/* -------------------------- GAMES LIST -------------------------- */
.games-grid-section {
    width: 90%;
    max-width: 1400px;
    margin: 100px auto;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.game-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.game-item:nth-child(1) { animation-delay: 0.1s; }
.game-item:nth-child(2) { animation-delay: 0.2s; }
.game-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-item.reverse {
    direction: rtl;
}

.game-item.reverse > * {
    direction: ltr;
}

.game-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.game-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(2, 128, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-image-wrapper:hover img {
    transform: scale(1.05);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.game-info-logo {
    max-height: 120px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    align-self: flex-start;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

.game-description {
    font-size: 18px;
    line-height: 1.8;
    color: #f7fdff;
    opacity: 0.95;
}

.game-link > * {
    position: relative;
    z-index: 2;
}

.game-link {
    z-index: 0;
    position: relative;          
    overflow: hidden;   
    background: #f7fdff;
    color: #0280ff;
    font-family: 'Nunito', 'Times New Roman';
    font-size: 18px;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
}

.game-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 15px rgba(255, 255, 255, 0.9);
}

.game-link:active {
    transform: translateY(-1px) scale(1.03);
}

.game-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../resources/ui/patterns/pattern_pigeons_black.png');
    background-repeat: repeat;
    background-size: 150px;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}


/* -------------------------- MERCH BUTTON -------------------------- */
.merch-button-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 40px 80px;
}

.merch-button {
    background-color: #f7fdff;
    opacity: 1;
    color: #333;
    font-weight: 900;
    font-family: 'Nunito', 'Times New Roman';
    font-size: 25px;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease, background-size 0.5s ease;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.merch-button::after{
    content: '';
    position: absolute;
    background-size: 250px;
    background-repeat: repeat;
    background-blend-mode: overlay;
    background-position: center;
    top: 0;
    left: 0;
    background-image: url('../resources/ui/patterns/pattern_pigeons_black.png');
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
    border-radius: 50px;
    transition: background-size 0.5s ease;
}

.merch-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
}

.merch-button:hover::before {
    left: 100%;
}

.merch-button:hover {
    transform: translateY(-5px) scale(1.05);
}

.merch-button:hover::after {
    background-size: 350px;
}

.merch-button:active {
    transform: translateY(-2px) scale(1.03);
}
.merch-redirect-icon {
    height: 25px;
    width: 25px;
    transition: transform 0.3s ease;
}

/* -------------------------- RESPONSIVE -------------------------- */
@media (max-width: 968px) {
    .games-hero {
        padding: 80px 30px 60px;
    }
    
    .games-hero h1 {
        font-size: 52px;
    }
    
    .games-hero p {
        font-size: 18px;
    }

    
    .games-list {
        gap: 80px;
        margin: 0 auto;
    }
    
    .game-item {
        gap: 40px;
    }
    
    .game-image-wrapper {
        height: 350px;
    }
}

@media (max-width: 640px) {
    .games-hero::after{
        background-size: 600px;
    }
    .games-hero {
        padding: 60px 20px 50px;
    }
    
    .games-hero h1 {
        font-size: 42px;
    }
    
    .games-hero p {
        font-size: 16px;
    }

    .game-info-logo, 
    .game-link {
        align-self: center; 
    }

    .games-list {
        gap: 60px;
    }
    
    .game-item,
    .game-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }
    
    .game-info {
        text-align: center;
    }
    
    .game-image-wrapper {
        height: 300px;
    }
    
    .game-description {
        font-size: 16px;
    }
    
    .game-link {
        font-size: 16px;
        padding: 12px 30px;
    }
}


@media (max-width: 400px){
    .games-hero h1{
        font-size: 30px;
    }

    .games-hero p {
        font-size: 13px;
    }

    .games-hero-content{
        width: 60%;
        gap:20px;
        box-shadow: 
            0 0 0 10px rgba(247, 253, 255, 0.8),
            0 0 0 20px rgba(247, 253, 255, 0.6),
            0 0 0 30px rgba(247, 253, 255, 0.4),
            0 0 0 40px rgba(247, 253, 255, 0.2);
    }
    
    .game-info-logo {
        display: none;
    }
    
    .game-info {
        gap: 15px;
    }

    .games-grid-section{
        margin: 50px auto;
    }

    .game-link{
        justify-self: center;
    }

    .game-link::after{
        background-size: 220px;
    }
    .game-link{
        align-self: center;
        font-weight: 900;
    }
    .games-list{
        gap: 80px;
    }
}